package com.gp.service.impl;

import com.gp.dao.MenuDao;
import com.gp.service.IncomeRecordService;
import com.gp.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program:carrent-pro
 * @author: luzzh
 * @Time: 2022-03-12 18:11
 * @Version: 1.0
 */
@Service
public class IncomeRecordServiceImpl implements IncomeRecordService {
    @Autowired
    private MenuDao menuDao;

    @Override
    public CommonResult selectRecord(Integer year) {
        List<Map> list = menuDao.selectRecord(year);
        return new CommonResult(200,"查询成功",list);
    }
}
